Skip to content

Sidecar submitter contianer template#4477

Open
marosset wants to merge 5 commits intoray-project:masterfrom
marosset:sidecar-submitter-contianer-template
Open

Sidecar submitter contianer template#4477
marosset wants to merge 5 commits intoray-project:masterfrom
marosset:sidecar-submitter-contianer-template

Conversation

@marosset
Copy link
Contributor

@marosset marosset commented Feb 3, 2026

Why are these changes needed?

These changes allow users to specify a container template to be used for submitter container when using Sidecar submission mode.
This functionality has been requested so sidecar submitter containers can specify volume mounts and/or env vars to be used during job ray job submission.

Related issue number

Fixes #4197

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

Signed-off-by: Mark Rossett <marosset@microsoft.com>
Signed-off-by: Mark Rossett <marosset@microsoft.com>
Signed-off-by: Mark Rossett <marosset@microsoft.com>
Signed-off-by: Mark Rossett <marosset@microsoft.com>
@marosset marosset marked this pull request as ready for review February 3, 2026 18:53
Signed-off-by: Mark Rossett <marosset@microsoft.com>
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

// pass the RayCluster instance for cluster selector case
func configureSubmitterContainer(container *corev1.Container, rayJobInstance *rayv1.RayJob, rayClusterInstance *rayv1.RayCluster, submissionMode rayv1.JobSubmissionMode) error {
// Always set the container name to the expected submitter container name
container.Name = utils.SubmitterContainerName
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Container name overwrite affects K8sJobMode unexpectedly

Medium Severity

The new line container.Name = utils.SubmitterContainerName in configureSubmitterContainer always overwrites the container name, regardless of submission mode. This function is called for both K8sJobMode and SidecarMode. For K8sJobMode users with a custom SubmitterPodTemplate that specified a custom container name, their name will now be silently overwritten to "ray-job-submitter". This is an unintended side effect of the SidecarMode feature and could break existing K8sJobMode configurations.

Fix in Cursor Fix in Web

Copilot AI mentioned this pull request Feb 5, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Support custom ray-job-submitter container spec for Sidecar mode

1 participant